package com.huawang.mdesign.model.service.vo;

import com.huawang.business.dto.property.ItemInfo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.*;

@Data
public class SlotVo {

    @Schema(title = "slot的instanceId")
    private String slotId;

    @Schema(title = "slot或property的中文名称")
    private String name;

    @Schema(title = "slot代表的property的instanceId")
    private String propertyId;

    @Schema(title = "枚举选项")
    private List<ItemInfo> items;

    @Schema(title = "数据类型: instance,enum,string,boolean")
    private String dataType;

    @Schema(title = "模型树可选类型")
    private String moreBtnCondition;

    @Schema(title = "slot的值")
    private List<SlotValueVo> values = new ArrayList<>();

    @Schema(title = "修改是否被禁用")
    private Boolean hidden = false;

    @Schema(title = "property的icon")
    private String propertyIcon;

    @Schema(title = "属性值是否为集合")
    private Boolean isMultiplicity;

    @Schema(title = "是否能设置为空")
    private Boolean nullable = false;

}
